package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.SpecialInstructionMark;
import com.zhijian.medical.entity.vo.request.SpecialInstructionMarkSearchVo;
import com.zhijian.medical.entity.vo.response.SpecialInstructionMarkVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SpecialInstructionMarkMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SpecialInstructionMark record);

    int insertSelective(SpecialInstructionMark record);

    SpecialInstructionMark selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SpecialInstructionMark record);

    int updateByPrimaryKey(SpecialInstructionMark record);

    /**
     * 查询总数
     *
     * @param specialInstructionMarkSearchVo
     * @return
     */
    int count(SpecialInstructionMarkSearchVo specialInstructionMarkSearchVo);

    /**
     * 查询列表
     *
     * @param specialInstructionMarkSearchVo
     * @return
     */
    List<SpecialInstructionMarkVo> selectList(SpecialInstructionMarkSearchVo specialInstructionMarkSearchVo);

    /**
     * 查询单个
     *
     * @param specialInstructionMarkSearchVo
     * @return
     */
    SpecialInstructionMarkVo selectOne(SpecialInstructionMarkSearchVo specialInstructionMarkSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    SpecialInstructionMarkVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param specialInstructionMarkSearchVo
     * @return
     */
    void deleteByCondition(SpecialInstructionMarkSearchVo specialInstructionMarkSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<SpecialInstructionMark> entities);

    /**
     * 根据InstructionId查询列表
     *
     * @param instructionId
     * @return
     */
    List<SpecialInstructionMarkVo> selectListByInstructionId(Long instructionId);
}